home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-05-01 | 2.8 KB | 105 lines | [TEXT/MPS ] |
- ;
- ; File: Servers.a
- ;
- ; Contains: Server Interfaces.
- ;
- ; Version: Technology: System 8
- ; Release: Universal Interfaces 3.0d3 on Copland DR1
- ;
- ; Copyright: © 1984-1996 by Apple Computer, Inc. All rights reserved.
- ;
- ; Bugs?: If you find a problem with this file, send the file and version
- ; information (from above) and the problem description to:
- ;
- ; Internet: apple.bugs@applelink.apple.com
- ; AppleLink: APPLE.BUGS
- ;
- ;
- IF &TYPE('__SERVERS__') = 'UNDEFINED' THEN
- __SERVERS__ SET 1
-
- IF &TYPE('__CODEFRAGMENTS__') = 'UNDEFINED' THEN
- include 'CodeFragments.a'
- ENDIF
- IF &TYPE('__KERNEL__') = 'UNDEFINED' THEN
- include 'Kernel.a'
- ENDIF
- IF &TYPE('__FILEMANAGERTYPES__') = 'UNDEFINED' THEN
- include 'FileManagerTypes.a'
- ENDIF
- IF FOR_SYSTEM8_PREEMPTIVE THEN
-
-
-
- kCreateServerResType EQU 'srvr'
- kCreateServerResID EQU 0
- ; typedef OptionBits CreateServerOptions
-
-
- kServerReservesLowMem EQU $00000001 ; Cannot be enabled with kServerIsPrivileged
- kServerIsPrivileged EQU $00000002 ; Cannot be enabled with kServerReservesLowMem
- kCreateServerForLookup EQU $00000004
- kCreateServerAtStartup EQU $00000008
- CreateServerDescriptor RECORD 0
- createOptions ds.l 1 ; offset: $0 (0)
- name ds.l 1 ; offset: $4 (4)
- taskOptions ds.l 1 ; offset: $8 (8)
- stackSize ds.l 1 ; offset: $C (12)
- serverName ds Str63 ; offset: $10 (16)
- sizeof EQU * ; size: $50 (80)
- ENDR
- ; typedef struct CreateServerDescriptor * CreateServerDescriptorPtr
-
- ;
- ; extern OSStatus CreateServer(FSObjectRef fileRef_t, const KernelNotification *deathNotification_i, Duration timeout_i, Str63 serverName_o, ServerID *server_o, void **refcon_o)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION CreateServer
- ENDIF
-
- ;
- ; extern OSStatus CreateServerAsync(FSObjectRef fileRef_t, const KernelNotification *deathNotification_i, const KernelNotification *asyncNotification_i, Str63 serverName_o, ServerID *server_o, void **refcon_o)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION CreateServerAsync
- ENDIF
-
- ;
- ; extern OSStatus RegisterServer(FSObjectRef fileRef_t, Str63 serverName_o)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION RegisterServer
- ENDIF
-
- ;
- ; extern OSStatus DeregisterServer(ConstStr63Param serverName_t)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION DeregisterServer
- ENDIF
-
- ;
- ; extern OSStatus LookupServer(ConstStr63Param serverName_t, Duration timeout_i, ServerID *server_o, void **refcon_o)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION LookupServer
- ENDIF
-
- ;
- ; extern OSStatus LookupServerAsync(ConstStr63Param serverName_t, const KernelNotification *asyncNotification_i, ServerID *server_o, void **refcon_o)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION LookupServerAsync
- ENDIF
-
- ;
- ; extern OSStatus ServerCreated(ServerID server_t, void *refcon_i)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION ServerCreated
- ENDIF
-
- ENDIF
- ENDIF ; __SERVERS__
-
-